/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package printadwardpaper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author THANH
 */
public class PrintObject {
    public static final String COLUMN_NAME_HO_TEN = "HoTen";
    public static final String COLUMN_NAME_LOP = "Lop";
    public static final String COLUMN_NAME_DANH_HIEU = "DanhHieu";
    public static final String COLUMN_NAME_SO_HO_SO = "SoHoSo";   
    public static final String COLUMN_NAME_SO_CAP = "SoCap";
    public static final String COLUMN_NAME_SO_QD = "SoQD";  
    public static final String COLUMN_NAME_DON_VI = "DonVi";  
    public static final String COLUMN_NAME_PHU_1 = "Phu1";  
    public static final String COLUMN_NAME_PHU_2 = "Phu2";  
            
    private String hoTen;
    private String lop;
    private String danhHieu;
    private String soHoSo;
    private String soCap;
    private String soQD;
    private String donVi;
    private String phu1;
    private String phu2;

    public PrintObject(String hoTen, String lop, String danhHieu, String soHoSo, String soCap, String soQD) {
        this.hoTen = hoTen;
        this.lop = lop;
        this.danhHieu = danhHieu;
        this.soHoSo = soHoSo;
        this.soCap = soCap;
        this.soQD = soQD;
    }

    public PrintObject(String hoTen, String lop, String danhHieu, String soHoSo, String soCap, String soQD, String donVi, String phu1, String phu2) {
        this.hoTen = hoTen;
        this.lop = lop;
        this.danhHieu = danhHieu;
        this.soHoSo = soHoSo;
        this.soCap = soCap;
        this.soQD = soQD;
        this.donVi = donVi;
        this.phu1 = phu1;
        this.phu2 = phu2;
    }
    
    
    
    public PrintObject(ResultSet rs) throws SQLException {
        this.hoTen = rs.getString(COLUMN_NAME_HO_TEN);
        this.lop = rs.getString(COLUMN_NAME_LOP);
        this.danhHieu = rs.getString(COLUMN_NAME_DANH_HIEU);
        this.soHoSo = rs.getString(COLUMN_NAME_SO_HO_SO);
        this.soCap = rs.getString(COLUMN_NAME_SO_CAP);
        this.soQD = rs.getString(COLUMN_NAME_SO_QD);
        this.donVi = rs.getString(COLUMN_NAME_DON_VI);
        this.phu1 = rs.getString(COLUMN_NAME_PHU_1);
        this.phu2 = rs.getString(COLUMN_NAME_PHU_2);
    }

    public String getHoTen() {
        return hoTen;
    }

    public void setHoTen(String hoTen) {
        this.hoTen = hoTen;
    }

    public String getLop() {
        return lop;
    }

    public void setLop(String lop) {
        this.lop = lop;
    }

    public String getDanhHieu() {
        return danhHieu;
    }

    public void setDanhHieu(String danhHieu) {
        this.danhHieu = danhHieu;
    }

    public String getSoHoSo() {
        return soHoSo;
    }

    public void setSoHoSo(String soHoSo) {
        this.soHoSo = soHoSo;
    }

    public String getSoCap() {
        return soCap;
    }

    public void setSoCap(String soCap) {
        this.soCap = soCap;
    }

    public String getSoQD() {
        return soQD;
    }

    public void setSoQD(String soQD) {
        this.soQD = soQD;
    }

    public String getDonVi() {
        return donVi;
    }

    public void setDonVi(String donVi) {
        this.donVi = donVi;
    }

    public String getPhu1() {
        return phu1;
    }

    public void setPhu1(String phu1) {
        this.phu1 = phu1;
    }

    public String getPhu2() {
        return phu2;
    }

    public void setPhu2(String phu2) {
        this.phu2 = phu2;
    }
    
    
    
}
